using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Xml.Serialization;

namespace WozLib.Xml
{
  public class SizeXmlSerializable
  {
    [XmlAttribute("Width")]
    public double _Width = 0.0;

    [XmlAttribute("Height")]
    public double _Height = 0.0;

    [XmlIgnore]
    public Size Size
    {
      get
      {
        return new Size(_Width, _Height);
      }
    }

    public SizeXmlSerializable(Size size)
    {
      _Width = size.Width;
      _Height = size.Height;
    }

    public SizeXmlSerializable()
    {
    }
  }
}
